home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
501-525
/
disk_519
/
avlsort
/
readme
< prev
next >
Wrap
Text File
|
1992-05-06
|
3KB
|
100 lines
AvlSort Text file sort program, based on an implementation of AVL
trees. Requires ARP.LIBRARY version 39+.
Copyright © 1990, 1991 by Robert L. Pyron. All Rights Reserved.
This program may be freely distributed, provided that all the files in this
archive are included. Bug fixes and improvements are welcome, please send
these to me on BIX (rpyron).
-----------------------------------------------------------------------------
This is an update to AVLSORT.LZH, posted previously on BIX. There are several
bug fixes and an algorithm improvement:
-- Better tracking of memory
-- Check for control-C, -D, -E, and -F
-- Identical lines are now placed in a linked list.
Some comparisons to ARP Sort:
-- ARP Sort has a much smaller executable file.
-- For most files, ARP Sort will be slightly faster.
-- For files with a lot of identical lines, this program will be
significantly faster.
-- ARP Sort is not stable (identical lines may appear in a different
order in the output file). This is significant if you use
COLSTART and WIDTH to sort on only a portion of the line.
-- ARP Sort can handle only 32767 lines. This program can handle
as many lines as will fit in memory.
-- This program has several command-line options that I occasionally
need (REVERSE, STRIP, and TABSTOP). You may find these useful.
-- Source code is available for this program.
-----------------------------------------------------------------------------
CREDITS
This program is based in large part on a package by Mark E. Mallett
(AVL.SHAR in the c.language/listings area on BIX). I quote from his
original README file:
> General purpose AVL tree routines.
> Copyright 1988 Zinn Computer Company
> by Mark E. Mallett
> All rights reserved.
> This software may be used at will, provided that all credits
> and style be left in place, and that its distribution is not
> restricted. Bug fixes and improvements are welcomed, please
> send these back to me at mem@zinn.MV.COM
> This is a general-purpose implementation of AVL trees in C.
> It is derived from the description of AVL (Adelson-Velskii and
> Landis) trees found in Knuth's "The Art of Computer
> Programming Volume 3: Searching and Sorting" (Addison-Wesley,
> 1973) pgs 451-471.
This program uses startup code provided by Sebastiano Vigna. I have
included the relevant library in this distribution; for further details, see
LATARPSV.LZH in the amiga/listings area on BIX.
-----------------------------------------------------------------------------
Contained in this kit:
ARPsv.lib
Sebiastiano Vigna's ARP startup code for Lattice C. For more
details, see LATARPSV.LZH in the amiga/listings area on BIX.
avl.lzh
Lharc'ed version of Mark Mallett's AVL.SHAR.
avltree.c
avltree.h
avltree.man
Modified version of Mallett's code, with prototypes and register
arguments.
avlsort.c
getline.c, getline.h
isatty.c, isatty.h
mem.c, mem.h
Miscellaneous source files by RLP.
makefile
Lattice make file.
AvlSort
Executable, compiled with Lattice 5.05.
AvlSort.doc
Usage document.
README
This file.